import React, { Component } from 'react'
  import Header from '../../components/Header/Header'
  import login from "./logo512.png"
export default class Mine extends Component {
  constructor(){
    super();
  this.state={
    res: JSON.parse(localStorage.getItem("isLogin"))
  }
  }
  render() {
   
    let {res}=this.state
    
    return (
      <div>
  <Header title="个人中心"></Header>
       <div>头像：<img src={login} alt="" style={{width:"100px"}}/></div>
      <div style={{"marginTop":"20px"}}>您的用户名是:{res.nickname}</div>
      <div>您的账号是:{res.phone}</div>
      
      </div>
    )
  }
}
